<%-- <%@ page language="java" contentType="text/html; charset=utf-8" --%>
<%--     pageEncoding="utf-8"%> --%>
    <%@ page language="java" 
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<%-- <script src="${pageContext.request.contextPath}/js/jquery3.3.1.js"></script> --%>
<%-- <link href="${pageContext.request.contextPath}/css/bootstrap.min.css" rel="stylesheet"> --%>
<%-- <link href="${pageContext.request.contextPath}/css/bootstrap-theme.min.css" rel="stylesheet"> --%>
<%-- <script src="${pageContext.request.contextPath}/js/bootstrap.min.js"></script> --%>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<%-- <script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery-1.11.0.min.js"></script> --%>
 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--  <link href="${pageContext.request.contextPath }/css/flowersingle.css" rel="stylesheet" type="text/css" /> --%>
<title>Insert title here</title>
</head>
<body>


<div class="container-fluid">
	<nav class="navbar navbar-inverse">
		<div class="container-fluid">
			<!-- Brand and toggle get grouped for better mobile display -->
			<div class="navbar-header">
				<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
					<span class="sr-only">Toggle navigation</span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
				</button>
				<a class="navbar-brand" href="${pageContext.request.contextPath}/Index.jsp">首页</a>
			</div>

			<!-- Collect the nav links, forms, and other content for toggling -->
			<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
				<ul class="nav navbar-nav">
					<li ><a href="${pageContext.request.contextPath }/ShowallServlet">所有商品</a></li>
					<c:forEach items="${com}" var="n">
					<li><a href="${pageContext.request.contextPath}/ShowTypeServlet?typeid=${n.typeid}">${n.type }</a></li>
					</c:forEach>
				</ul>
				<form class="navbar-form navbar-right" role="search" action = "${pageContext.request.contextPath }/SearchServlet" method="post">
					<div class="form-group">
						<input type="text" class="form-control" placeholder="Search" name = "search">
					</div>
					<button type="submit" class="btn btn-default" name = "search">Submit</button>
				</form>

			</div>
			<!-- /.navbar-collapse -->
		</div>
		<!-- /.container-fluid -->
	</nav>
</div>

</body>
</html>